package com.cyclecoder.consumer.controller;

import com.cyclecoder.consumer.service.ProducerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author by zhanglei
 * @Date 2021/8/19
 */
@RestController
public class TestController {
    @Autowired
    private ProducerService producerService;
    @RequestMapping("/test")
    public String test(){

        return producerService.result();
    }
}
